package api

import (
	"dou/api/handler"
	"github.com/gin-gonic/gin"
)

func Router(c *gin.Engine) {
	api := c.Group("/api")
	{
		user := api.Group("/user")
		{
			user.POST("/login", handler.Login)
		}

		chat := api.Group("/chat")
		{
			chat.GET("/speak", handler.Chat)

			chat.POST("/upload", handler.UploadImg)
		}

		video := api.Group("/video")
		{
			video.POST("/find", handler.FindVideo)

			video.POST("/find", handler.FindNameVideo)

		}

	}
}
